package com.qimu.saiyou.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 试卷用户考题
 * @TableName user_paper_answer
 */
@TableName(value ="user_paper_answer")
@Data
public class UserPaperAnswer implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 题目ID
     */
    private Long questionId;
    /**
     * 用户考试ID
     */
    private Long userPaperId;

    /**
     * 答案id
     */
    private Long answerId;

    /**
     * 主观答案
     */
    private String subjectiveAnswer;

    /**
     * 实际得分(主观题)
     */
    private Integer actualScore;

    /**
     * 是否答对 0-未答 1-答对 2-错
     */
    private Integer isRight;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 是否删除
     */
    private Integer isDelete;

    /**
     * 更新时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}